<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page import="pt.iscte.dcti.es.rhplus.sistema.ContaDeUtilizador"%>
<%@page import="pt.iscte.dcti.es.rhplus.utilizador.Pessoa"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%!boolean valid_session = false;%>
<%
	String session_id = (String) session.getAttribute("session_id");
	if (!session.isNew() && session_id != null && session_id.equals(session.getId()))
		valid_session = true;
	else
		valid_session = false;


	if (valid_session && session.getAttribute("utilizador") != null) {
		String perfil_de_utilizador = ContaDeUtilizador.devolvePerfil(((Pessoa)session.getAttribute("utilizador")).getIdPessoa());
		if(perfil_de_utilizador != null){
		%>
			<jsp:include page="menuPessoa.jsp" />
			<tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="Gestor?gestor=gestor_de_colaboradores&accao=inserir_colaborador&sub_accao=primeira">Inserir Colaborador</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
			<tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="Gestor?gestor=gestor_de_utentes&accao=inserir_cliente&sub_accao=primeira">Inserir Cliente</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
            <% //Dani11{ %>
            <tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="/RHPlus/inserirHospital.jsp">Inserir Hospital</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
            <tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="/RHPlus/pesquisarColaborador.jsp">Dados Colaborador</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
            <% //}Dani11 %>

<% // Catia 30 abr{%>
            <tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="/RHPlus/pesquisarHospital.jsp">Dados Hospital</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
            <tr class="show">
				<td class="border_l">&nbsp;</td>
				<td class="content_box_sub"><FONT SIZE=0.5><a href="/RHPlus/pesquisarUtente.jsp">Dados Cliente</a></FONT></td>
				<td class="border_r" width="10">&nbsp;</td>
			</tr>
<% // }Catia 30 abr%>

		<%
		} else {
		%>
			<jsp:include page="menuEsquerdo.jsp" />
		<%
		}
}
%>
